﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Common.Encryption;
using Common.MachineInfo;

namespace Tools
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btn_generate_Click(object sender, EventArgs e)
        {
            IInverseEncryption encryption = new InverseEncryption();
            string encryStr= encryption.InverseEncrypt(txt_input.Text.Trim());
            txt_output.Text = encryStr;
        }

        private void btn_generate_machineCode_Click(object sender, EventArgs e)
        {
            MachineInfo machineInfo = new MachineInfo();
            string cpuId = machineInfo.GetCpuID();
            rtb_machineCode.Text = cpuId;
        }
    }
}
